<?php

    DEFINE ("__AJAX", TRUE);  // Without Sessions from configuration

    require_once ('../Library/Ajax/Ajax.php');
    $_return = NULL;


    $results = $_GET;

    $query = Ajax_Call::IN($results['q']);




    $sql = "SELECT * FROM  `Auth` WHERE email like (?) LIMIT 0,10 ";
    $sql_param = array ( "%$query%");


    $_return .= '<div class="alert alert-info" > ';



    $logging = $db->rawQuery($sql, $sql_param ); // ORDER BY date DESC"


    foreach ( $logging as $l) {

        $asm = ($l['level'] ==0)  ? "Admin" : "";
        $_return .= '<p> <a  href="?admin_users&id='.$l['id'].'"> '. $l['email'] .'  </a> '. $asm .'  </p>';
    }

    $_return .= '</div>';



    echo $_return;

?>
